<div class="row">
  <div class="col-md-12">
    <app-navigationadmin></app-navigationadmin>
  </div>
</div>

<button class="btn btn-primary" (click)="add()">添加</button>
<table class="table">
  <thead>
  <tr>
    <th scope="col">#</th>
    <th scope="col">图片</th>
    <th scope="col">UD操作</th>
  </tr>
  </thead>
  <tbody>
  <tr *ngFor="let p of pl ;index as i">
    <th scope="row" >{{i+1}}</th>
    <td>
      <img src="{{p.picurl}}" width="320px" height="160px">
    </td>

    <td>
      <button class="btn btn-success" (click)="update(p.pictureid)">修改</button>
      <button class="btn btn-danger" (click)="delete(p.pictureid)">删除</button>

    </td>
  </tr>

  </tbody>
</table>

